/**
 * @author https://vue-admin-beautiful.com （不想保留author可删除）
 * @description 获取随机id
 * @param length
 * @returns {string}
 */
const uuid = (length = 32) => {
    const num = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'
    let str = ''
    for (let i = 0; i < length; i++) {
        str += num.charAt(Math.floor(Math.random() * num.length))
    }
    return str
}
export {uuid}
